﻿using Microsoft.VisualBasic;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Security.Principal;

/// <summary>
/// Classe Identity utilisé pour la sécurité
/// </summary>
/// <remarks></remarks>
/// 
namespace Framework.Data.Security
{
    public class Identity : IIdentity
    {

        #region "Members"

        private string _name = null;
        private string _authenticationType = null;
        private bool _isAuthenticated = false;

        #endregion

        #region "Constuctors"
        
        public Identity(string name)
        {
            this._name = name;
            this._isAuthenticated = true;
            this._authenticationType = "Custom";
        }

        #endregion

        #region "IIdentity"
        
        public string AuthenticationType
        {
            get { return this._authenticationType; }
        }

        public bool IsAuthenticated
        {
            get { return this._isAuthenticated; }
        }

        public string Name
        {
            get { return this._name; }
        }
        
        #endregion
    }
}